xen/test/livepatch: Regularise Makefiles
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 7 Jun 2017 13:44:51 +0000 (14:44 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 14 Jun 2017 11:03:27 +0000 (12:03 +0100)
commite541982dc21dcc5be61279d22d477ed5c0bc41c5
treea5e1dc3fdaef0598225202ae21d3a20b47e1f3cd
parenta38d1af5fb02bee68c9a30e38b97c6129815f943
xen/test/livepatch: Regularise Makefiles

In xen/test/livepatch/Makefile:

  Provide a `build' target, as most of the
  subdir-invoking Makefiles elsewhere expect.

In xen/test/Makefile:

  Replace the two open-coded targets with a generalised pattern rule
  which descends into each of SUBDIRS.  This allows `install' to work
  too (it is already supported by xen/test/livepatch/Makefile).

  Provide an explicit default target of `tests', and an `all' target
  (which is conventional).

  Suppress entry into the xen/test/livepatch subdir when we are
  building for i386, since the 32-bit hypervisor is not supported any
  more and we can't build livepatches for it either.

After this, the xen/test subdirectory is somewhere were make can be
invoked in the way which is conventional for xen.git/xen/ subdirs.

None of this is yet invoked from the top-level Makefile.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Release-acked-by: Julien Grall <julien.grall@arm.com>
xen/test/Makefile
xen/test/livepatch/Makefile